<?php
class Pages_model extends CI_Model {

	public function __construct()
	{
		$this->load->database();
	}
	
	public function get_pages($page)
	{	
		$this->db->select('page_name, description, youtube_link');
		$query = $this->db->get_where('pages', array('page_name' => $page));
		//var_dump($query->list_fields());
		return $query;
	
	}
}